package com.voltmao.service.application.module;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.voltmao.persistent.mapper.AdminUserRoleMapsMapper;
import com.voltmao.persistent.model.AdminUserRoleMaps;
import com.voltmao.persistent.model.AdminUserRoleMapsCriteria;

import java.util.List;


@Service
public class AdminUserRoleMapsServiceImpl {
    @Autowired
    AdminUserRoleMapsMapper adminUserRoleMapsMapper;

    public List<AdminUserRoleMaps> getAdminUserRoleMaps(String userId){
        AdminUserRoleMapsCriteria exmple = new AdminUserRoleMapsCriteria();
        AdminUserRoleMapsCriteria.Criteria c = exmple.createCriteria();
        c.andTblAdminUserIdEqualTo(userId);

        return adminUserRoleMapsMapper.selectByExample(exmple);
    }
}
